package de.unidue.langtech.teaching.pp.example.pipeline;

import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.fit.factory.CollectionReaderFactory;
import org.apache.uima.fit.pipeline.SimplePipeline;

import de.unidue.langtech.teaching.pp.example.Baseline;
import de.unidue.langtech.teaching.pp.example.Evaluator;
import de.unidue.langtech.teaching.pp.example.Reader;
import de.unidue.langtech.teaching.pp.example.RuleBasedSolver;

public class Pipeline {

	public static void main(String[] args) throws Exception {
	
	/*	SimplePipeline.runPipeline(CollectionReaderFactory.createReader(
				Reader.class, Reader.PARAM_INPUT_FILE,
				"src/test/resources/test/AQUAINT/"), AnalysisEngineFactory
				.createEngineDescription(Baseline.class),
				AnalysisEngineFactory.createEngineDescription(Evaluator.class)); */
		
		SimplePipeline.runPipeline(CollectionReaderFactory.createReader(
				Reader.class, Reader.PARAM_INPUT_FILE,
				"src/test/resources/test/AQUAINT/"), AnalysisEngineFactory
				.createEngineDescription(RuleBasedSolver.class),
				AnalysisEngineFactory.createEngineDescription(Evaluator.class));
		
	/*	SimplePipeline.runPipeline(CollectionReaderFactory.createReader(
				Reader.class, Reader.PARAM_INPUT_FILE,
				"src/test/resources/test/TimeBank/"), AnalysisEngineFactory
				.createEngineDescription(Baseline.class),
				AnalysisEngineFactory.createEngineDescription(Evaluator.class)); */
		
		SimplePipeline.runPipeline(CollectionReaderFactory.createReader(
				Reader.class, Reader.PARAM_INPUT_FILE,
				"src/test/resources/test/TimeBank/"), AnalysisEngineFactory
				.createEngineDescription(RuleBasedSolver.class),
				AnalysisEngineFactory.createEngineDescription(Evaluator.class));
	}

}
